package com.cet.jvm;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: cet-practice
 * @description:
 * @author: 陈恩涛
 * @create: 2023-10-18 16:54
 **/
public class HeapOOM {

    static class OOMObject {
    }

    public static void main(String[] args) {

        List<OOMObject> list = new ArrayList<>();

        while (true) {
            list.add(new OOMObject());
        }
    }
}
